package com.lu.statistics.controller;

import com.lu.statistics.common.config.ServerResponse;
import com.lu.statistics.common.configBean.AppVersion;
import com.lu.statistics.common.configBean.SystemConfig;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "应用版本", tags = {"应用版本"})
@RestController
@RequestMapping("/api/app")
public class VersionController {
    @Autowired
    AppVersion version;
    @GetMapping("/version")
    public ServerResponse<String> getVersion() {
        // 假设你的小程序版本号是硬编码的，实际情况可能需要从配置文件或数据库读取
        return ServerResponse.success(version.getVersion());
    }
}
